package cn.edu.scau.cmi.chenjieling.abstractFactory.factory;

import cn.edu.scau.cmi.chenjieling.abstractFactory.domainAbstractClass.*;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String type) {
		switch (type) {
		case "BodyInjure":
			return new BodyFactory();
		case "CarDamage":
			return new CarFactory();
		case "Comprehensive":
			return new ComFactory();
		case "PersonInjure":
			return new PersonFactory();
		}
		return null;

	}
	
	public abstract PICC createPICC();
	public abstract PingAn createPingAn();

}